package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 客户跟进记录
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@Data
@TableName ("erp_follow_record_info")
@ApiModel (value = "客户/供应商跟进记录", description = "客户/供应商跟进记录")
public class FollowRecordEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("类型(0客户 1供应商)")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("跟进主题")
    @TableField ("topic")
    private String topic;

    @ApiModelProperty ("客户Id")
    @TableField ("customer_id")
    private String customerId;

    @ApiModelProperty ("甲方联系人")
    @TableField ("contacts_name")
    private String contactsName;

    @ApiModelProperty ("实际跟进日期")
    @TableField ("follow_time")
    private Date followTime;

    @ApiModelProperty ("跟进类型Id")
    @TableField ("follow_type")
    private String followType;

    @ApiModelProperty ("乙方执行人")
    @TableField ("executor_name")
    private String executorName;

    @ApiModelProperty ("跟进地址")
    @TableField ("address")
    private String address;

    @ApiModelProperty ("跟进记录内容")
    @TableField ("follow_desc")
    private String followDesc;

    @ApiModelProperty ("下次跟进时间")
    @TableField ("next_follow_time")
    private Date nextFollowTime;

    @ApiModelProperty ("创建日期")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新日期")
    @TableField ("change_time")
    private Date changeTime;

    @TableField ("is_used")
    private Integer isUsed;

    @TableField(exist = false)
    private String customerName;


}
